﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using Microsoft.ApplicationBlocks.Data;

/// <summary>
///DBAccessConn 的摘要说明
/// </summary>
public class DBAccessConn
{
    public DBAccessConn()
    {
    }
    // ExecuteDataTable
    public static DataTable ExecuteDataTable(string connectionString, string commandText)
    {
        return ExecuteDataTable(connectionString, commandText, null);
    }
    public static DataTable ExecuteDataTable(string connectionString, string commandText, params SqlParameter[] cmdParameters)
    {
        return SqlHelper.ExecuteDataTable(connectionString, CommandType.Text, commandText, cmdParameters);
    }
}